import request from '@/utils/request'

// 查询门店类别列表
export function listType(query) {
  return request({
    url: '/storetype/type/list',
    method: 'get',
    params: query
  })
}

// 查询门店类别详细
export function getType(storeTypeId) {
  return request({
    url: '/storetype/type/' + storeTypeId,
    method: 'get'
  })
}

// 新增门店类别
export function addType(data) {
  return request({
    url: '/storetype/type',
    method: 'post',
    data: data
  })
}

// 修改门店类别
export function updateType(data) {
  return request({
    url: '/storetype/type',
    method: 'put',
    data: data
  })
}

// 删除门店类别
export function delType(storeTypeId) {
  return request({
    url: '/storetype/type/' + storeTypeId,
    method: 'delete'
  })
}
